package com.zhaowt.event;

import com.zhaowt.Enums.LoginResult;

/**
 * created by 赵文韬 on 2023/1/1 15:23
 */
public class MyLoginEvent {
    private LoginResult result;
    private String username;

    public MyLoginEvent() {
    }

    public MyLoginEvent(LoginResult result, String username) {
        this.result = result;
        this.username = username;
    }

    public LoginResult getResult() {
        return result;
    }

    public void setResult(LoginResult result) {
        this.result = result;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "MyLoginEvent{" +
                "result=" + result +
                ", username='" + username + '\'' +
                '}';
    }
}
